﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Hotel.Domain;
using Hotel_Admin.Common;

namespace Hotel_Admin
{
    public partial class us_Header : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        public TAI_KHOAN UserLogin
        {
            get
            {
                return Session[SessionKey.SessionLogin] as TAI_KHOAN;
            }
            set
            {
                Session[SessionKey.SessionLogin] = value;
            }
        }

        protected void lnkbtnLogOut_Click(object sender, EventArgs e)
        {
            Session[SessionKey.SessionLogin] = null;
            UserLogin = null;
            Response.Redirect("Login.aspx", true);
        }
    }
}